<{include 'layout/activity_header.html'}>

<section class="content-header">
    <h1>
        参与用户
        <small>信息</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="index.php?a=index"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active"><{$admin}></li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="nav-tabs-custom">
                <div class="tab-content">
                    <div class="tab-pane active" id="activity">
                        <div class="box">
                            <div class="box-body table-responsive no-padding">
                                <table class="table table-hover  text-center">
                                    <tbody>
                                    <tr>
                                        <th width="60px">ID</th>
                                        <th width="10%">姓名</th>
                                        <th>手机</th>
                                        <th>中奖记录</th>
                                        <th>报名时间</th>
                                    </tr>
                                    <{foreach $joinInfo as $user}>
                                    <tr class="zh-conctrol">
                                        <th><{$user['id']}></th>
                                        <th><{$user['name']}></th>
                                        <th><{$user['tel']}></th>
                                        <th>
                                            <{foreach $user['prizeLog'] as $v}>
                                            <li style="list-style-type:none"><{$v}></li>
                                            <{/foreach}>
                                        </th>
                                        <th><{$user['add_time']}></th>
                                    </tr>
                                    <{/foreach}>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <input type="button" id="export" value="导出excel">
            <input type="button" id="clear" value="清除数据">
            <{$pagination}>
        </div>
    </div>
</section>
</div>
</div>

<!-- JavaScripts -->
<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./plugin/layer/layer.js"></script>
<script src="./js/common.js"></script>
<script src="./plugin/adminLTE/js/app.min.js"></script>
<script src="./plugin/datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script src="./plugin/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script src="./js/pageAudit.js"></script>
<script>
$(document).on('click','#export',function(){
    window.open('index.php?a=export');
});
$("#clear").click(function() {
    $.ajax({
        type: "get",
        url: "index.php?a=clear",
        async: true,
        dataType: 'json',
        success: function(restlt) {
            if(restlt.status == 1){
                alert("数据清除成功！");
            }
        }
    })
})
</script>
</body>
</html>
